package com.demo.scenic.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

@ApiModel
@Data
public class UserDTO {
    @ApiModelProperty(value = "账号",required = true)
    @NonNull
    private String mobile;

    @ApiModelProperty(value = "用户名",example = "userName")
    private String username;


    @ApiModelProperty(value = "密码",required = true)
    @NonNull
    private String password;
    @ApiModelProperty("角色")
    private Integer role;
    @ApiModelProperty(value = "身份，USER-用户；MERCHANT-商家；ALL-全部",allowableValues = "USER,MERCHANT,ALL",example = "USER",required = true)
    private String identity;
    @ApiModelProperty(value="avatar头像")
    private String avatar;
}
